package biolabs.query;

import biolabs.core.BioObject;

/**
 * Expression that evaluates to the value provided at construction.
 *
 * @author Tomas Mikula
 */
public class ConstantExpression implements Expression {

	private final Object value;

	public ConstantExpression(Object value) {
		this.value = value;
	}

	@Override
	public Object eval(BioObject obj) {
		return value;
	}

}
